package com.stormrage.entity.index.rep;

import java.io.Serializable;

import com.stormrage.entity.index.IdxTrial;

public class IdxTrialRep implements Serializable {

	// ------------------------------- Fields -------------------------------

	private static final long serialVersionUID = -3768554763594479604L;

	// ------------------------------- Fields -------------------------------

	private Integer seq;

	private Integer id;

	private String trial;

	private String url;

	private String image;

	private Integer right;

	// ------------------------------- Fields -------------------------------

	public IdxTrialRep() {
	}

	// ------------------------------- Fields -------------------------------

	public Integer getSeq() {
		return seq;
	}

	public void setSeq(Integer seq) {
		this.seq = seq;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getTrial() {
		return trial;
	}

	public void setTrial(String trial) {
		this.trial = trial;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getImage() {
		return image;
	}

	public void setImage(String image) {
		this.image = image;
	}

	public Integer getRight() {
		return right;
	}

	public void setRight(Integer right) {
		this.right = right;
	}

	// ------------------------------- Fields -------------------------------

	public static IdxTrialRep instance(IdxTrial arg0, Integer seq, Integer right) {
		IdxTrialRep entity = new IdxTrialRep();
		entity.setSeq(seq);
		entity.setId(arg0.getId());
		entity.setTrial(arg0.getTrial());
		entity.setUrl(arg0.getUrl());
		entity.setImage(arg0.getImage());
		entity.setRight(right);
		return entity;
	}

	@Override
	public String toString() {
		return this.getClass() + " : seq - " + seq + " id - " + id + " image - " + image + " trial - " + trial
				+ " url - " + url + " image - " + image + " right - " + right;
	}

}
